<?php

class IndexController extends Zend_Controller_Action
{
	function init() {
		$contextSwitch = $this->_helper->getHelper('contextSwitch');
		$contextSwitch->addActionContext('togglesidebar', 'json');
		$contextSwitch->initContext();
	}
	
	function indexAction() {
	}
	
	function loginAction() {
	}
	
	function togglesidebarAction() {
		$sidebarSession = new Zend_Session_Namespace('sidebar');
		if($this->_getParam('mode') == 'visible' ) $sidebarSession->visible = true;
		if($this->_getParam('mode') == 'hidden' ) $sidebarSession->visible = false;
	}

       

} //End class


?>